package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MemberTypeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public MemberTypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMtnoIsNull() {
            addCriterion("mtno is null");
            return (Criteria) this;
        }

        public Criteria andMtnoIsNotNull() {
            addCriterion("mtno is not null");
            return (Criteria) this;
        }

        public Criteria andMtnoEqualTo(String value) {
            addCriterion("mtno =", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotEqualTo(String value) {
            addCriterion("mtno <>", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoGreaterThan(String value) {
            addCriterion("mtno >", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoGreaterThanOrEqualTo(String value) {
            addCriterion("mtno >=", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoLessThan(String value) {
            addCriterion("mtno <", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoLessThanOrEqualTo(String value) {
            addCriterion("mtno <=", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoLike(String value) {
            addCriterion("mtno like", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotLike(String value) {
            addCriterion("mtno not like", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoIn(List<String> values) {
            addCriterion("mtno in", values, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotIn(List<String> values) {
            addCriterion("mtno not in", values, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoBetween(String value1, String value2) {
            addCriterion("mtno between", value1, value2, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotBetween(String value1, String value2) {
            addCriterion("mtno not between", value1, value2, "mtno");
            return (Criteria) this;
        }

        public Criteria andMttypeIsNull() {
            addCriterion("mttype is null");
            return (Criteria) this;
        }

        public Criteria andMttypeIsNotNull() {
            addCriterion("mttype is not null");
            return (Criteria) this;
        }

        public Criteria andMttypeEqualTo(String value) {
            addCriterion("mttype =", value, "mttype");
            return (Criteria) this;
        }

        public Criteria andMttypeNotEqualTo(String value) {
            addCriterion("mttype <>", value, "mttype");
            return (Criteria) this;
        }

        public Criteria andMttypeGreaterThan(String value) {
            addCriterion("mttype >", value, "mttype");
            return (Criteria) this;
        }

        public Criteria andMttypeGreaterThanOrEqualTo(String value) {
            addCriterion("mttype >=", value, "mttype");
            return (Criteria) this;
        }

        public Criteria andMttypeLessThan(String value) {
            addCriterion("mttype <", value, "mttype");
            return (Criteria) this;
        }

        public Criteria andMttypeLessThanOrEqualTo(String value) {
            addCriterion("mttype <=", value, "mttype");
            return (Criteria) this;
        }

        public Criteria andMttypeLike(String value) {
            addCriterion("mttype like", value, "mttype");
            return (Criteria) this;
        }

        public Criteria andMttypeNotLike(String value) {
            addCriterion("mttype not like", value, "mttype");
            return (Criteria) this;
        }

        public Criteria andMttypeIn(List<String> values) {
            addCriterion("mttype in", values, "mttype");
            return (Criteria) this;
        }

        public Criteria andMttypeNotIn(List<String> values) {
            addCriterion("mttype not in", values, "mttype");
            return (Criteria) this;
        }

        public Criteria andMttypeBetween(String value1, String value2) {
            addCriterion("mttype between", value1, value2, "mttype");
            return (Criteria) this;
        }

        public Criteria andMttypeNotBetween(String value1, String value2) {
            addCriterion("mttype not between", value1, value2, "mttype");
            return (Criteria) this;
        }

        public Criteria andMtbegintimeIsNull() {
            addCriterion("mtbegintime is null");
            return (Criteria) this;
        }

        public Criteria andMtbegintimeIsNotNull() {
            addCriterion("mtbegintime is not null");
            return (Criteria) this;
        }

        public Criteria andMtbegintimeEqualTo(Date value) {
            addCriterion("mtbegintime =", value, "mtbegintime");
            return (Criteria) this;
        }

        public Criteria andMtbegintimeNotEqualTo(Date value) {
            addCriterion("mtbegintime <>", value, "mtbegintime");
            return (Criteria) this;
        }

        public Criteria andMtbegintimeGreaterThan(Date value) {
            addCriterion("mtbegintime >", value, "mtbegintime");
            return (Criteria) this;
        }

        public Criteria andMtbegintimeGreaterThanOrEqualTo(Date value) {
            addCriterion("mtbegintime >=", value, "mtbegintime");
            return (Criteria) this;
        }

        public Criteria andMtbegintimeLessThan(Date value) {
            addCriterion("mtbegintime <", value, "mtbegintime");
            return (Criteria) this;
        }

        public Criteria andMtbegintimeLessThanOrEqualTo(Date value) {
            addCriterion("mtbegintime <=", value, "mtbegintime");
            return (Criteria) this;
        }

        public Criteria andMtbegintimeIn(List<Date> values) {
            addCriterion("mtbegintime in", values, "mtbegintime");
            return (Criteria) this;
        }

        public Criteria andMtbegintimeNotIn(List<Date> values) {
            addCriterion("mtbegintime not in", values, "mtbegintime");
            return (Criteria) this;
        }

        public Criteria andMtbegintimeBetween(Date value1, Date value2) {
            addCriterion("mtbegintime between", value1, value2, "mtbegintime");
            return (Criteria) this;
        }

        public Criteria andMtbegintimeNotBetween(Date value1, Date value2) {
            addCriterion("mtbegintime not between", value1, value2, "mtbegintime");
            return (Criteria) this;
        }

        public Criteria andMtendtimeIsNull() {
            addCriterion("mtendtime is null");
            return (Criteria) this;
        }

        public Criteria andMtendtimeIsNotNull() {
            addCriterion("mtendtime is not null");
            return (Criteria) this;
        }

        public Criteria andMtendtimeEqualTo(Date value) {
            addCriterion("mtendtime =", value, "mtendtime");
            return (Criteria) this;
        }

        public Criteria andMtendtimeNotEqualTo(Date value) {
            addCriterion("mtendtime <>", value, "mtendtime");
            return (Criteria) this;
        }

        public Criteria andMtendtimeGreaterThan(Date value) {
            addCriterion("mtendtime >", value, "mtendtime");
            return (Criteria) this;
        }

        public Criteria andMtendtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("mtendtime >=", value, "mtendtime");
            return (Criteria) this;
        }

        public Criteria andMtendtimeLessThan(Date value) {
            addCriterion("mtendtime <", value, "mtendtime");
            return (Criteria) this;
        }

        public Criteria andMtendtimeLessThanOrEqualTo(Date value) {
            addCriterion("mtendtime <=", value, "mtendtime");
            return (Criteria) this;
        }

        public Criteria andMtendtimeIn(List<Date> values) {
            addCriterion("mtendtime in", values, "mtendtime");
            return (Criteria) this;
        }

        public Criteria andMtendtimeNotIn(List<Date> values) {
            addCriterion("mtendtime not in", values, "mtendtime");
            return (Criteria) this;
        }

        public Criteria andMtendtimeBetween(Date value1, Date value2) {
            addCriterion("mtendtime between", value1, value2, "mtendtime");
            return (Criteria) this;
        }

        public Criteria andMtendtimeNotBetween(Date value1, Date value2) {
            addCriterion("mtendtime not between", value1, value2, "mtendtime");
            return (Criteria) this;
        }

        public Criteria andMtdescIsNull() {
            addCriterion("mtdesc is null");
            return (Criteria) this;
        }

        public Criteria andMtdescIsNotNull() {
            addCriterion("mtdesc is not null");
            return (Criteria) this;
        }

        public Criteria andMtdescEqualTo(String value) {
            addCriterion("mtdesc =", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescNotEqualTo(String value) {
            addCriterion("mtdesc <>", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescGreaterThan(String value) {
            addCriterion("mtdesc >", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescGreaterThanOrEqualTo(String value) {
            addCriterion("mtdesc >=", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescLessThan(String value) {
            addCriterion("mtdesc <", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescLessThanOrEqualTo(String value) {
            addCriterion("mtdesc <=", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescLike(String value) {
            addCriterion("mtdesc like", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescNotLike(String value) {
            addCriterion("mtdesc not like", value, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescIn(List<String> values) {
            addCriterion("mtdesc in", values, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescNotIn(List<String> values) {
            addCriterion("mtdesc not in", values, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescBetween(String value1, String value2) {
            addCriterion("mtdesc between", value1, value2, "mtdesc");
            return (Criteria) this;
        }

        public Criteria andMtdescNotBetween(String value1, String value2) {
            addCriterion("mtdesc not between", value1, value2, "mtdesc");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}